package com.czk.model.responsebilitychain.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/10/27 22:26
 */
@RestController
@RequestMapping("/handler")
public class HandlerController {
    @Autowired
    private HandlerInitialize handlerInitialize;

    @GetMapping("")
    public String check(HttpServletRequest request, HttpServletResponse response) {
        handlerInitialize.check(request, response);
        return "校验1成功";
    }
}
